namespace PropertyExpression.ControllableQuery
{
    public class SqlParameterNameGenerator
    {
        private int sqlParameterIndex;

        public string GetNextName()
        {
            var result = string.Format("@p{0}", sqlParameterIndex);
            sqlParameterIndex++;
            return result;
        }
    }
}